package edu.upf.grupoe.p2ppicture.SearchEngine.interfaces;

import edu.upf.grupoe.p2ppicture.SearchEngine.implementations.GenericMessageImpl;
import java.io.InvalidClassException;
import java.util.List;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.packet.Packet;
/**
 * This interface provides all the tools needed to manage the connections.
 */
public interface InstantMessage {
    public void login(String user, String password, String resource) throws XMPPException;
    public void logout();
    public void search(List<String> to, String typeOfSearch, List<String> keywords) throws XMPPException;
    public void offerContent(Packet packet, GenericMessageImpl msg) throws XMPPException, InvalidClassException;
    public void getContent(Packet packet, GenericMessageImpl msg) throws XMPPException, InvalidClassException;
    public void sendChatMessage(String message, String to);
}
